package com.spring.distribute.common;

public class Constant {
    public static final String NACOS_EVENT_INIT = "NACOS_EVENT_INIT";
    public static final String DEFAULT_GROUP = "DEFAULT_GROUP";
    public static final String LISTENER_EMPTY = "LISTENER_EMPTY";
    public static final String SPLIT = "=";
    public static final String CANAL_SIMPLE_CONNECTOR = "canal-simple_connector";

    // zk-lock
    public static final String MONITOR_SUCCESS = "MONITOR_SUCCESS";
    /**
     * 节点状态必须为: SUCCESS_CREATE --> MONITOR_SUCCESS --> LOCK_WAIT --> LOCKING --> DELETE
     *                                                                --> NO_GET_LOCK
     * */
    public static final String
        SUCCESS_CREATE = "SUCCESS_CREATE",  // 节点创建成功
        LOCKING = "LOCKING", // 节点已经处于锁的过程中
        UN_LOCK = "UN_LOCK"; // 节点已经释放锁
}
